import { Init, Provide } from '@midwayjs/decorator';
import { BaseService } from '@cool-midway/core';
import { InjectEntityModel } from '@midwayjs/typeorm';
import { Repository } from 'typeorm';
import { TaskSystemTaskInfoEntity } from '../entity/task_info';

/**
 * tasksystem模块-任务信息服务
 */
@Provide()
export class TaskSystemTaskInfoService extends BaseService {
  @InjectEntityModel(TaskSystemTaskInfoEntity)
  taskSystemTaskInfoEntity: Repository<TaskSystemTaskInfoEntity>;

  @Init()
  async init() {
    await super.init();
    this.setEntity(this.taskSystemTaskInfoEntity);
  }
}
